import Loadable from 'react-loadable';  //第三方库
import Loading from "../components/Loading";

const Login = Loadable({
    loader: () => import('./Login'),
    loading: Loading
})

const NotFound  = Loadable({
    loader: () => import('./NotFound'),
    loading: Loading
})

const AdminManager  = Loadable({
    loader: () => import('./AdminManage'),
    loading: Loading
})

const AddAdmin  = Loadable({
    loader: () => import('./AdminManage/addAdmin'),
    loading: Loading
})

const UserManage = Loadable({
    loader: () => import('./UserManage'),
    loading: Loading
})

const ArticleManage  = Loadable({
    loader: () => import('./ArticleManage'),
    loading: Loading
})

const ArticleDetail = Loadable({
    loader:() => import('./ArticleManage/articleDetail'),
    loading:Loading
})

const DiscussionGroupManage  = Loadable({
    loader: () => import('./DiscussionGroupManage'),
    loading: Loading
})

const QuestionManage  = Loadable({
    loader: () => import('./QuestionManage'),
    loading: Loading
})

const DashBoard  = Loadable({
    loader: () => import('./DashBoard'),
    loading: Loading
})


export {
    Login,
    NotFound,
    QuestionManage,
    DiscussionGroupManage,
    AdminManager,
    UserManage,
    ArticleManage,
    DashBoard,
    AddAdmin,
    ArticleDetail
}